﻿<?php
//	session_start();
	if(isset($_SESSION ['loggedin'])){
		unset($_SESSION ['loggedin']);
		session_destroy();
		header('Location: index.php');
		}
?>

	<div class="titulo">
		<fieldset id="edicion">
		<legend>Loguin</legend>
			<form id="login" method="post" action="index.php?p=loginForm">
			<?php
				if (isset($_GET['error']))
					echo '<div id="errorLogin"><label>Usuario o Password invalidos</label></div>';
			?>
				<div>
					<label for="usuario">Usuario:</label>
					<input name="username" type="text" tabindex="0" class="textLogin"/>
				</div>
				<div>
					<label for="contraseña">Password:</label>
					<input name="password" type="password" tabindex="0" class="textLogin"/>
				</div>
				
				<div>
					<br><input type="submit" tabindex="0" class="loginButton" name="acceder" value="Acceder"/>
					<input type="submit" tabindex="0" class="loginButton" name="cancelar" value="Cancelar"/>
				</div>
			</form>
		</fieldset>
	</div>
	

